const Koa = require('koa')
const chalk = require('chalk')

const app = new Koa();

app.use((ctx:any)=>{
    console.log(ctx.path);
    
  ctx.body ='111'
})


const config = {
    port: 3000
}

app.listen(config, () => {
    console.log(chalk.green(`server is running at ${config.port}`))

})